home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2007 January, February, March & April
/
Chip-Cover-CD-2007-02.iso
/
Pakiet bezpieczenstwa
/
mini Pentoo LiveCD 2006.1
/
mpentoo-2006.1.iso
/
livecd.squashfs
/
usr
/
share
/
irssi
/
scripts
/
command.pl
< prev
next >
Wrap
Text File
|
2006-05-02
|
477b
|
24 lines
# Example how to create your own /commands:
# /HELLO <nick> - sends a "Hello, world!" to given nick.
use Irssi;
use strict;
use vars qw($VERSION %IRSSI);
$VERSION = "1.00";
%IRSSI = (
authors => 'Timo Sirainen',
name => 'command',
description => 'Command example',
license => 'Public Domain'
);
sub cmd_hello {
my ($data, $server, $channel) = @_;
$server->command("/msg $data Hello, world!");
}
Irssi::command_bind('hello', 'cmd_hello');